package com.campus.common.bean.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@ApiModel(value = "pagination", description = "分页实体")
public class Pagination<T> {
    @ApiModelProperty(value = "当前页码",  position = 0)
    private int currentPage;
    @ApiModelProperty(value = "每页条数", position = 1)
    private int pageSize;
    @ApiModelProperty(value = "总条数", position = 2)
    private int total;
    @ApiModelProperty(value = "当前页数据", position = 3)
    private List<T> list;

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}